 'use strict'
 const merge = require('webpack-merge')
 const prodEnv = require('./prod.env')

 // 正式环境
 // const gateHost = 'hywater.hytech.top'
 // const wsHost = 'hywater.hytech.top'
 // const gateHost = 'hywater.pro-goo.com'
 // const wsHost = 'hywater.pro-goo.com'

 // 本地环境
 // const gateHost = '192.168.50.31'
 // const wsHost = '192.168.50.31'

 // 测试环境
 const gateHost = '119.3.254.158'
     // const wsHost = '114.116.241.118'

 // 阿里云环境
 // const baseHost = '39.103.224.197'
 // const wsHost = '39.103.224.197'
 // const alertHost = '39.103.224.197'
 // const openHost = '39.103.224.197'



 // 承启通私有化
 // const baseHost = '172.16.247.132'
 // const wsHost = '172.16.247.134'
 // const alertHost = '172.16.247.136'
 // const openHost = '172.16.247.136'

 // 门头沟项目
 // const baseHost = '39.103.218.39'
 // const wsHost = '39.103.218.39'
 // const alertHost = '39.103.218.39'
 // const openHost = '39.103.218.39'

 //无网关环境 ----- 端口 ------
 const gatePort = '8888'
     // const wsPort = '8087'
     // const basePort = '8443'
     // const algoPort = '8082'
     // const wsPort = '8443'
     // const alertPort = '8444'
     // const openPort = '8086'

 //其他环境 ----- 端口 ------
 // const basePort = '8980'
 // const wsPort = '8443'
 // const alertPort = '8980'

 // 正式环境 ----- 端口 ------
 // const basePort = '7000'
 // const wsPort = '7000'
 // const alertPort = '8444'
 // const openPort = '8086'

 // 图片路径
 // const imageHost = 'hywater.hytech.top'
 // const imageHost = 'hywater.pro-goo.com'
 // const imagePort = '8002'
 // const filePort = '8008'

 // ---------------- 中台-测试 -----------------
 const progooIp = '114.116.241.118:19204' // 测试环境
 const progooFile = '119.3.254.158:8008' // 静态文件下载
 const progooSocket = '114.116.241.118:8087' // socket
 const progooCommunication = '114.116.241.118:8446' // netty

 // ---------------- 中台-生产 -----------------
 // const progooIp = 'hywater.pro-goo.com:19204'   // 测试环境
 // const progooFile = 'hywater.pro-goo.com:8008'     // 静态文件下载
 // const progooSocket = 'hywater.pro-goo.com:8087';  // socket
 // const progooCommunication = 'hywater.pro-goo.com:8446' // netty


 const progooImage = 'hywater.pro-goo.com:8002';


 module.exports = merge(prodEnv, {
     NODE_ENV: '"development"',
     VERSIONS: '"V3.5.4"',

     // ------------ 水质 --------------
     API_BASE_API: `"http://${gateHost}:${gatePort}/gate/water-system/api/"`,
     //API_ALGO_API: `"http://${gateHost}:${gatePort}/gate/water-algo/api/"`,
     API_ALERT_API: `"http://${gateHost}:${gatePort}/gate/water-maintenance/"`,
     //API_OPEN_API: `"http://${gateHost}:${gatePort}/gate/water-api/api/"`,
     //API_FILE_API: `"http://${gateHost}:${filePort}/"`,
     //API_IMAGE_API: `"http://${imageHost}:${imagePort}/"`,
     //API_WS_API: `"ws://${wsHost}:${wsPort}/"`,

     // ------------ 中台 --------------
     PROGOO_GATE_WATER: `"http://${progooIp}/gate/admin/"`, // 水质
     PROGOO_FILE: `"http://${progooFile}/"`, // 静态文件下载
     PROGOO_SOCKET: `"ws://${progooSocket}/"`, // socket
     PROGOO_IMAGE: `"http://${progooImage}/"`,
     PROGOO_COMMUNICATION: `"http://${progooCommunication}/api/"`,



 })